package com.fourth.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.fourth.dao.BusinessDao;
import com.ljx.entity.BusinessInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author LJX
 * @Description: TODO
 * @Date: 2023/3/1 16:03
 * @Version 1.0
 */
@RestController
@RequestMapping("/system/business")
public class BusinessController {
	@Autowired(required = false)
	private BusinessDao businessDao;

	@GetMapping("/getByTel/{telephone}")
	public BusinessInfo getByTel(@PathVariable String telephone){

		BusinessInfo businessInfo = businessDao.selectOneByeTlephone(telephone);
		return businessInfo;
	}
}
